/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2021-08-17 11:10:31
 * @LastEditors: GGB
 * @LastEditTime: 2021-08-17 16:11:26
 */
class DoorModel {
  String name;
  int count;
  bool status;
  String color;

  DoorModel({this.name, this.count, this.status, this.color});

  DoorModel.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    count = json['count'];
    status = json['status'];
    color = json['color'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['count'] = this.count;
    data['status'] = this.status;
    data['color'] = this.color;
    return data;
  }
}

class DoorPeopleModel {
  String name;
  String time;
  String avatar;
  String inType;

  DoorPeopleModel({this.name, this.time, this.avatar, this.inType});

  DoorPeopleModel.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    time = json['time'];
    avatar = json['avatar'];
    inType = json['inType'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['time'] = this.time;
    data['avatar'] = this.avatar;
    data['inType'] = this.inType;
    return data;
  }
}
